---
title: "Secret"
slug: /getting-started/types/secret
description: "Learn about the Secret object in Dagger and how to use it in your workflows with practical examples."
---

import SecretType from "@daggerTypes/_secret.mdx";

import UseSecretVariable from "@cookbookSecret/_use-secret-variable.mdx";
import MountFilesAsSecret from "@cookbookSecret/_mount-files-as-secret.mdx";
import UseSecretInDockerfileBuild from "@cookbookSecret/_dockerfile-build.mdx";

<SecretType />

## Examples

<UseSecretVariable />

<MountFilesAsSecret />

<UseSecretInDockerfileBuild />
